public class EmployeeRelativeStandardController {

      // Variables
    Employee_Relative_del__c relative;
    
    
    //Get the id of the account to assign the relative
    //Integer id=(Integer)ApexPages.currentPage().getParameters().get('id');
    // Get methods.
    
    public Employee_relative_del__c getrelative() {
    if(relative == null) relative = new Employee_relative_del__c();
    return relative;
    }
    
    
    
    //Method save
    public PageReference save() {
    
    //Asign the relative to the Parent Account
    relative.Employee__c=ApexPages.currentPage().getParameters().get('id');
    
    //Insert the account
    try{
        insert relative;
        //Send the user to step 2
        
        //Send user to next the step page
        PageReference ref = new PageReference('/apex/EmployeeStep4');
        return ref;
    }catch(Exception e){
        System.debug('An error has ocurred (AccountStandardController): Error '+e.getMessage()); 
        ApexPages.addMessage(new ApexPages.message(ApexPages.severity.ERROR, 'Sorry. An error has ocurred'));
    }
    
    return null;
 }
 
public PageReference cancel(){
    return Page.EmployeeStep2;
}
        

    
    
    
}